<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extra/spring-security">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="icon" type="shortcut icon" th:href="@{/img/favicon.ico}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.min.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css/global.css}" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
    <link rel="stylesheet" type="text/css" th:href="@{/editor-md/css/editormd.css}" />
    <title>郑在守护—智防通</title>
    <style>
        /* 导航栏样式 */
        .navbar {
            background-color: white !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            height: 56px;
            padding: 0;
            border-radius: 4px;
            margin-top: 5px;
        }
        
        .navbar-brand {
            display: flex;
            align-items: center;
            padding: 0 16px;
            height: 56px;
            border-right: 1px solid #f0f0f0;
            font-weight: 600;
            color: #2196F3;
            transition: all 0.3s ease;
        }
        
        .navbar-brand:hover {
            background-color: rgba(33, 150, 243, 0.05);
        }
        
        .navbar-brand i {
            color: #2196F3;
            font-size: 20px;
            margin-right: 8px;
        }
        
        .navbar-brand span {
            color: #2196F3;
            font-size: 16px;
            font-weight: 600;
        }
        
        .navbar-nav {
            display: flex;
            align-items: center;
            height: 56px;
            padding: 0 12px;
        }
        
        .nav-item {
            height: 56px;
            margin: 0 2px;
        }
        
        .nav-link {
            display: flex !important;
            align-items: center;
            height: 56px;
            padding: 0 12px !important;
            color: #666 !important;
            position: relative;
            font-size: 13px;
            transition: all 0.3s ease;
        }
        
        .nav-link i {
            font-size: 16px;
            margin-right: 5px;
            transition: transform 0.2s ease;
            display: inline-block;
            vertical-align: middle;
        }
        
        .nav-link span {
            display: inline-block;
            vertical-align: middle;
        }
        
        .nav-link:hover {
            color: #2196F3 !important;
            background-color: rgba(33, 150, 243, 0.05);
        }
        
        .nav-link:hover i {
            transform: scale(1.1);
        }
        
        .nav-link.active {
            color: #2196F3 !important;
            font-weight: 500;
        }
        
        .nav-link.active:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 16px;
            right: 16px;
            height: 2px;
            background-color: #2196F3;
        }
        
        .search-form {
            position: relative;
            margin-right: 12px;
        }
        
        .search-form input {
            width: 200px;
            height: 32px;
            padding: 0 32px 0 12px;
            border: 1px solid #e8e8e8;
            border-radius: 16px;
            background-color: #f5f5f5;
            font-size: 13px;
            transition: all 0.3s ease;
        }
        
        .search-form input:focus {
            width: 240px;
            border-color: #2196F3;
            box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
            outline: none;
        }
        
        .search-form .serach-btn {
            position: absolute;
            right: 4px;
            top: 4px;
            width: 24px;
            height: 24px;
            font-size: 14px;
            background-color: transparent;
            border: none;
            color: #2196F3;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .search-form .serach-btn:hover {
            transform: scale(1.1);
            color: #1976D2;
        }
        
        .user-info {
            height: 56px;
            border-left: 1px solid #f0f0f0;
            padding-left: 16px;
            transition: all 0.3s ease;
        }
        
        .user-info:hover {
            background-color: rgba(33, 150, 243, 0.05);
        }
        
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            margin-right: 6px;
            border: 2px solid rgba(33, 150, 243, 0.2);
            transition: all 0.3s ease;
        }
        
        .user-info:hover .user-avatar {
            border-color: rgba(33, 150, 243, 0.5);
        }
    <style>
        /* 防诈骗内容样式 */
        .anti-fraud-content {
            position: fixed;
            right: 0;
            width: 280px;
            padding: 15px;
            background-color: #fff;
            box-shadow: -2px 0 4px rgba(0,0,0,0.05);
            z-index: 100;
        }
        
        .anti-fraud-banner {
            background: rgb(18, 127, 249);
            color: white;
            padding: 8px;
            margin-bottom: 10px;
            text-align: center;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        .anti-fraud-banner h4 {
            font-size: 1rem;
            margin-bottom: 4px;
        }
        
        .anti-fraud-banner p {
            font-size: 0.8rem;
            margin-bottom: 0;
        }
        
        .anti-fraud-tip {
            background-color: #fff3cd;
            border: 1px solid #ffeeba;
            padding: 8px;
            margin-bottom: 10px;
            border-radius: 4px;
            font-size: 0.85rem;
        }
        
        .anti-fraud-tip h5 {
            font-size: 0.9rem;
            margin-bottom: 6px;
        }
        
        .anti-fraud-tip ul {
            padding-left: 16px;
            margin-bottom: 0;
        }
        
        .anti-fraud-tip li {
            font-size: 0.8rem;
            line-height: 1.4;
            margin-bottom: 4px;
        }
        
        .emergency-contact {
            background-color: #dc3545;
            color: white;
            padding: 8px;
            border-radius: 4px;
            text-align: center;
            font-size: 0.85rem;
        }
        
        .emergency-contact h5 {
            font-size: 0.9rem;
            margin-bottom: 4px;
        }
        
        /* 主内容区域调整 */
        .main-content {
            margin-right: 300px;
            margin-left: 80px;
        }
        
        /* 两侧二维码样式 */
        .side-qrcode {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            width: 100px;
            background: rgba(255, 255, 255, 0.9);
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 100;
        }
        
        .side-qrcode.left {
            left: 20px;
        }
        
        .side-qrcode img {
            width: 100%;
            height: auto;
            margin-bottom: 8px;
        }
        
        .side-qrcode p {
            font-size: 0.8rem;
            color: #666;
            margin: 0;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="nk-container">
    <!-- 防诈骗横幅 -->
    <div class="anti-fraud-banner">
        <div class="container">
            <h4><i class="bi bi-shield-check"></i> 提高警惕，防范诈骗</h4>
            <p class="mb-0">共建平安校园，远离电信诈骗</p>
        </div>
    </div>

    <!-- 头部 -->
    <header class="bg-white sticky-top" th:replace="index::header">
    </header>

    <!-- 内容 -->
    <div class="main">
        <!-- 左侧二维码 -->
        <div class="side-qrcode left">
            <img src="/images/fanzhaapp.png" alt="反诈APP">
            <p>反诈APP</p>
        </div>

        <!-- 右侧防诈骗提示 -->
        <div class="anti-fraud-sidebar">
            <div class="anti-fraud-header">
                <i class="bi bi-shield-exclamation"></i> 防诈骗警示
                <p>共同守护财产安全，远离电信网络诈骗</p>
            </div>
            
            <div class="anti-fraud-tips">
                <h5>防诈骗小贴士</h5>
                <ul>
                    <li><i class="bi bi-check2"></i> 不轻信陌生来电，不透露个人信息</li>
                    <li><i class="bi bi-check2"></i> 不随意点击不明链接</li>
                    <li><i class="bi bi-check2"></i> 遇到可疑情况及时报警</li>
                </ul>
            </div>
            
            <div class="emergency-contact-info">
                <h5>紧急联系方式</h5>
                <p>全国反诈中心热线：96110</p>
            </div>
        </div>

        <div class="container">
            <div class="row">
                <div class="col-md-9 main-content">
                    <!-- 标题 -->
                    <h5 class="mb-4">
                        <i class="bi bi-exclamation-triangle-fill" style="color: #dc3545"></i>
                        <span th:utext="${fraudCase.title}">案例标题</span>
                        <span class="badge badge-secondary bg-primary" th:if="${fraudCase.status==1}">置顶</span>
                        <div class="float-right">
                            <a class="btn btn-info btn-sm" th:href="@{/fraud/type(type=${fraudCase.type})}" th:text="${fraudCase.type}">案例类型</a>
                            <button type="button" class="btn btn-danger btn-sm" id="topBtn"
                                    th:if="${loginUser!=null && loginUser.type==1}"
                                    th:text="${fraudCase.status==1?'取消置顶':'置顶'}"
                                    th:onclick="top_fraud([[${'${fraudCase.id}'}]])">
                                置顶
                            </button>
                        </div>
                    </h5>
                    <!-- 作者发布时间 -->
                    <div class="text-muted font-size-12">
                        <span>发布时间: <i th:text="${#dates.format(fraudCase.createTime,'yyyy-MM-dd HH:mm:ss')}">2019-04-28 14:13:25</i></span>
                        <span th:if="${fraudCase.updateTime!=null}">
                            &nbsp;|&nbsp;
                            <span>更新时间: <i th:text="${#dates.format(fraudCase.updateTime,'yyyy-MM-dd HH:mm:ss')}">2019-04-28 14:13:25</i></span>
                        </span>
                        <ul class="d-inline float-right">
                            <li class="d-inline ml-2">
                                <a href="javascript:;" th:onclick="|like(this, 3, ${fraudCase.id}, 1, ${fraudCase.id});|" class="text-primary">
                                    <b th:text="${likeStatus == 1 ? '已赞' : '赞'}"></b> <i th:text="${likeCount}"></i>
                                </a>
                            </li>
                        </ul>
                    </div>
                    <!-- 内容 -->
                    <div class="card mt-4">
                        <div class="card-body">
                            <div class="content" id="md-content">
                                <textarea style="display:none;" th:utext="${fraudCase.content}"></textarea>
                            </div>
                        </div>
                    </div>
                    <!-- 回到列表 -->
                    <div class="row mt-4">
                        <div class="col-12">
                            <a th:href="@{/fraud/list}" class="btn btn-secondary btn-sm">&laquo; 返回列表</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 尾部 -->
    <footer class="footer fixed-bottom" style="background-color: rgba(52, 58, 64, 0.95); height: 60px; padding: 10px 0;">
        <div class="container h-100">
            <div class="row h-100 align-items-center" style="margin: 0;">
                <div class="col-12">
                    <div class="d-flex align-items-center justify-content-center h-100">
                        <div class="text-white-50" style="font-size: 12px; line-height: 1.6;">
                            <span style="margin-right: 15px;">智防通 - 你的AI防诈管家</span>
                            <span>制作人：海航源、黄文博、邓皓轩、王胜超</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>
</div>

<script th:src="@{/js/jquery-3.1.0.min.js}"></script>
<script th:src="@{/js/popper.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/global.js}"></script>
<script th:src="@{/js/fraud.js}"></script>

<script th:src="@{/editor-md/lib/marked.min.js}"></script>
<script th:src="@{/editor-md/lib/prettify.min.js}"></script>
<script th:src="@{/editor-md/lib/raphael.min.js}"></script>
<script th:src="@{/editor-md/lib/underscore.min.js}"></script>
<script th:src="@{/editor-md/lib/sequence-diagram.min.js}"></script>
<script th:src="@{/editor-md/lib/flowchart.min.js}"></script>
<script th:src="@{/editor-md/lib/jquery.flowchart.min.js}"></script>
<script th:src="@{/editor-md/editormd.min.js}"></script>
<script type="text/javascript">
    var testEditor;
    $(function () {
        testEditor = editormd.markdownToHTML("md-content", {
            htmlDecode: "style,script,iframe",
            emoji: true,
            taskList: true,
            tex: true,
            flowChart: true,
            sequenceDiagram: true,
            codeFold: true
        })
    })
</script>
</body>

<!-- 添加新的样式 -->
<style>
    /* 防诈骗警示横幅 */
    .fraud-warning-banner {
        background-color: #2196F3;
        color: white;
        padding: 10px 0;
        text-align: center;
    }
    
    .fraud-warning-banner i {
        margin-right: 5px;
    }
    
    .fraud-warning-banner span {
        margin-left: 10px;
        font-size: 0.9rem;
    }
    
    /* 右侧防诈骗提示 */
    .anti-fraud-sidebar {
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 280px;
        background-color: white;
        border-radius: 4px 0 0 4px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        overflow: hidden;
        z-index: 1000;
    }
    
    .anti-fraud-header {
        background-color: #2196F3;
        color: white;
        padding: 10px 15px;
        font-weight: 500;
    }
    
    .anti-fraud-header p {
        margin: 5px 0 0;
        font-size: 0.8rem;
        opacity: 0.9;
    }
    
    .anti-fraud-tips {
        padding: 10px 15px;
        background-color: #fff3cd;
        border-bottom: 1px solid #ffe8a1;
    }
    
    .anti-fraud-tips h5 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .anti-fraud-tips ul {
        padding-left: 15px;
        margin-bottom: 0;
    }
    
    .anti-fraud-tips li {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .emergency-contact-info {
        background-color: #dc3545;
        color: white;
        padding: 10px 15px;
        text-align: center;
    }
    
    .emergency-contact-info h5 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .emergency-contact-info p {
        margin: 0;
        font-weight: 500;
    }
    
    /* 调整主内容区域 */
    .main-content {
        margin-right: 300px;
    }
</style>
</html>